﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CMS.Data;

namespace CMSApplication.Areas.Administration.Models
{
    public class CustomerTypeModel
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Desc { get; set; }
        public Nullable<int> Order { get; set; }

        public static void Mapfrom(Customer_Type entity, ref CustomerTypeModel model)
        {
            model.Id = entity.Id;
            model.Name = entity.Name;
            model.Desc = entity.Desc;
            model.Order = entity.Order;
        }

        public static void Mapfrom(CustomerTypeModel model, ref Customer_Type entity)
        {
            entity.Id = model.Id;
            entity.Name = model.Name;
            entity.Desc = model.Desc;
            entity.Order = model.Order;
        }
    }
}
